//
//  Student.m
//  OC3_继承
//
//  Created by dllo on 15/10/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Student.h"

@implementation Student


- (NSString *)name
{
    return _name;
}

- (void)setName:(NSString *)name
{
    _name = name;
}
- (NSString *)sex
{
    return _sex;
}
- (void)setSex:(NSString *)sex
{
    _sex = sex;
}
- (NSInteger)age
{
    return _age;
}
- (void)setAge:(NSInteger)age
{
    _age = age;
}
- (CGFloat)score
{
    return _score;
}
- (void)setScore:(CGFloat)score
{
    _score = score;
}

- (id)initWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age score:(CGFloat)score
{
    _name = name;
    _sex = sex;
    _age = age;
    _score = score;
    return self;

}

- (void)info
{
    NSLog(@"%@ %@ %ld %.2f", _name, _sex, _age, _score);
}


@end
